Skip to main content
Write a program of right triangle pattern in python - Right Triangle Pattern program in python - Python Programs -  Pattern programs in python
 
 Right Triangle Pattern
Python Code:
# right triangle pattern
n = 5
for i in range(n):
    for j in range(i + 1):
        print('*', end='')
    print('')
Output
*
**
***
****
*****
Here is the Practical of the above program in Jupyter Notebook
 
 
 
 
 
 
 
 
 
 
 
 
Comments
Post a Comment